<?xml version="1.0" encoding="UTF-8"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1">
<jsp:directive.page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
<jsp:directive.page import="java.util.ArrayList, java.util.Iterator, cult.ticketing.bean.*" />
<jsp:output omit-xml-declaration="no" doctype-root-element="html" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
<jsp:include page="templates/include_header.html" />

<jsp:text><![CDATA[<html>
<head>
<title>Cult Ticketing System</title>

<link href="]]></jsp:text><jsp:expression>request.getContextPath()</jsp:expression><jsp:text><![CDATA[/css/style.css" rel="stylesheet" type="text/css" />
<link href="]]></jsp:text><jsp:expression>request.getContextPath()</jsp:expression><jsp:text><![CDATA[/css/movie.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="container">
]]></jsp:text>
<jsp:include page="templates/include_menu.jsp" />
<jsp:text><![CDATA[<div id="main">
        <div id="content">
        <div id="head_image">
        	<div id="slogan"><strong>Cult Ticketing System -- Profile</strong><br />
       	    </div>
            <div id="under_slogan_text">
                <br /><br /><br /><br />

            </div>
          </div>

         <div id="left">]]></jsp:text>
            <jsp:include page="templates/profileLeftNav.jsp" />
            <jsp:include page="templates/calendar.jsp" />
         <jsp:text><![CDATA[</div>

         <div id="right">
            <h1>Profile</h1>
            <p>&nbsp;</p>]]></jsp:text>

            <jsp:scriptlet>
                if (request.getAttribute("showOption") != null) {
                    if (((String)request.getAttribute("showOption")).equalsIgnoreCase("showLoyaltyPoint")) {</jsp:scriptlet>
                        <jsp:text><![CDATA[Your have <b>]]></jsp:text><jsp:expression>request.getAttribute("loyaltyPoint")</jsp:expression><jsp:text><![CDATA[ loyalty point. </b>]]></jsp:text>
                    <jsp:scriptlet>}
                    else if (((String)request.getAttribute("showOption")).equalsIgnoreCase("showPurchaseRecord")){</jsp:scriptlet>
                        <jsp:include page="templates/purchaseRecord.jsp" />
                    <jsp:scriptlet>} 
                    else if (((String)request.getAttribute("showOption")).equalsIgnoreCase("prepareRefundRequest")){</jsp:scriptlet>
                        <jsp:include page="templates/refundRequest.jsp" />
                    <jsp:scriptlet>}
                    else if (((String)request.getAttribute("showOption")).equalsIgnoreCase("showRefundStatus")){</jsp:scriptlet>
                        <jsp:include page="templates/refundStatus.jsp" />
                    <jsp:scriptlet>}
                    else {
                        if ((Boolean)request.getAttribute("isSuccessful")) {</jsp:scriptlet>
                            <jsp:text><![CDATA[Your refund request is submitted. <br />
                            You can check your request result 3 days later.]]></jsp:text>
                        <jsp:scriptlet>}
                        else {</jsp:scriptlet>
                            <jsp:text><![CDATA[Your refund request failed. Please submit again.]]></jsp:text>
                        <jsp:scriptlet>}
                        }
                }
                else {</jsp:scriptlet>
                    <jsp:text><![CDATA[Welcome! ]]></jsp:text><jsp:expression>session.getAttribute("email")</jsp:expression> <jsp:text><![CDATA[<br />]]></jsp:text>
                <jsp:scriptlet>}
            </jsp:scriptlet>

        <jsp:text><![CDATA[</div>
	</div>
</div>
</div>]]></jsp:text>
<jsp:include page="templates/include_footer.html" />
<jsp:text><![CDATA[</body>
</html>
]]></jsp:text>
</jsp:root>
